package ai.people.netmon.framework.businessenum;

import java.util.Objects;

/**
 * 分析来源枚举
 *
 * @author yuanqinglong
 * @date 2022/1/17 15:57
 */
public enum AnalysisSourceEnum {

    whatsapp, telegram, tor, instagram, facebook, twitter, youtube, weibo, news, i2p, zeronet, reddit, ethereum, line, gettr, qq, vk, tiktok, linkedin;


    public static boolean check(String source) {
        AnalysisSourceEnum[] values = AnalysisSourceEnum.values();
        for (AnalysisSourceEnum value : values) {
            if (Objects.equals(source, value.name())) {
                return true;
            }
        }
        return false;
    }
}
